@{ var listTags = CommonService.TagsQuery().Take(25).ToList();}

<div class="navtag">
    <ul class="nav nav-pills">
        <li class="nav-link">
            <a href="/">#</a>
        </li>
        @foreach (var mo in listTags)
        {   
            <li class="nav-link">
                <a href="/home/type/@System.Web.HttpUtility.UrlEncode(mo.TagName)">                    
                    @mo.TagName
                </a>
            </li>
        }
    </ul>
    <a class="gotag" href="/home/tags" aria-label="标签"><i class="fa fa-tags"></i></a>
</div>